#include Farmville-select window.ahk

;Ensure that we are zoomed out all the way
;This only requires 3 clicks, but I did 6 just in case
Loop 6
{
MouseClick, left,  691,  564
Sleep, 100
}

;Move window to view the first part of the field
MouseClickDrag, Left, 400, 400, 500, 400

Sleep, 100

MouseClick, left,  34,  407
Sleep, 20000
MouseClick, left,  49,  396
MouseClick, left,  73,  385
MouseClick, left,  98,  372
MouseClick, left,  126,  360
MouseClick, left,  151,  349
MouseClick, left,  177,  337
MouseClick, left,  202,  325
MouseClick, left,  226,  314
MouseClick, left,  252,  300
MouseClick, left,  275,  289
MouseClick, left,  303,  276
MouseClick, left,  326,  264
MouseClick, left,  351,  253
MouseClick, left,  373,  239
MouseClick, left,  400,  228
MouseClick, left,  424,  218
MouseClick, left,  452,  204
MouseClick, left,  474,  193
MouseClick, left,  499,  182
MouseClick, left,  524,  195
MouseClick, left,  501,  206
MouseClick, left,  471,  218
MouseClick, left,  451,  228
MouseClick, left,  421,  242
MouseClick, left,  398,  254
MouseClick, left,  374,  266
MouseClick, left,  349,  276
MouseClick, left,  323,  291
MouseClick, left,  299,  300
MouseClick, left,  274,  315
MouseClick, left,  249,  326
MouseClick, left,  222,  339
MouseClick, left,  199,  350
MouseClick, left,  176,  362
MouseClick, left,  150,  375
MouseClick, left,  125,  385
MouseClick, left,  100,  398
MouseClick, left,  74,  411
MouseClick, left,  50,  421
MouseClick, left,  76,  435
MouseClick, left,  101,  421
MouseClick, left,  123,  410
MouseClick, left,  153,  396
MouseClick, left,  174,  384
MouseClick, left,  200,  374
MouseClick, left,  225,  362
MouseClick, left,  253,  348
MouseClick, left,  276,  337
MouseClick, left,  299,  326
MouseClick, left,  328,  312
MouseClick, left,  352,  300
MouseClick, left,  376,  288
MouseClick, left,  402,  278
MouseClick, left,  425,  263
MouseClick, left,  448,  254
MouseClick, left,  475,  240
MouseClick, left,  502,  230
MouseClick, left,  526,  216
MouseClick, left,  549,  206
MouseClick, left,  576,  219
MouseClick, left,  549,  230
MouseClick, left,  525,  241
MouseClick, left,  501,  254
MouseClick, left,  473,  265
MouseClick, left,  449,  279
MouseClick, left,  421,  290
MouseClick, left,  400,  300
MouseClick, left,  374,  314
MouseClick, left,  349,  327
MouseClick, left,  324,  337
MouseClick, left,  299,  348
MouseClick, left,  274,  363
MouseClick, left,  247,  373
MouseClick, left,  224,  384
MouseClick, left,  200,  396
MouseClick, left,  174,  409
MouseClick, left,  151,  420
MouseClick, left,  123,  433
MouseClick, left,  102,  445
MouseClick, left,  125,  458
MouseClick, left,  152,  446
MouseClick, left,  172,  432
MouseClick, left,  201,  422
MouseClick, left,  225,  411
MouseClick, left,  252,  396
MouseClick, left,  274,  385
MouseClick, left,  302,  373
MouseClick, left,  323,  362
MouseClick, left,  351,  347
MouseClick, left,  374,  336
MouseClick, left,  400,  324
MouseClick, left,  424,  314
MouseClick, left,  450,  301
MouseClick, left,  476,  289
MouseClick, left,  500,  278
MouseClick, left,  525,  265
MouseClick, left,  552,  251
MouseClick, left,  574,  241
MouseClick, left,  600,  228
MouseClick, left,  625,  240
MouseClick, left,  597,  254
MouseClick, left,  572,  265
MouseClick, left,  551,  276
MouseClick, left,  524,  291
MouseClick, left,  500,  300
MouseClick, left,  474,  313
MouseClick, left,  450,  325
MouseClick, left,  424,  337
MouseClick, left,  400,  349
MouseClick, left,  376,  361
MouseClick, left,  350,  372
MouseClick, left,  323,  386
MouseClick, left,  298,  396
MouseClick, left,  272,  410
MouseClick, left,  249,  422
MouseClick, left,  222,  435
MouseClick, left,  197,  442
MouseClick, left,  173,  458
MouseClick, left,  154,  468
MouseClick, left,  173,  481
MouseClick, left,  201,  468
MouseClick, left,  225,  456
MouseClick, left,  251,  444
MouseClick, left,  272,  432
MouseClick, left,  299,  420
MouseClick, left,  326,  410
MouseClick, left,  349,  397
MouseClick, left,  373,  385
MouseClick, left,  399,  373
MouseClick, left,  424,  363
MouseClick, left,  451,  349
MouseClick, left,  474,  336
MouseClick, left,  499,  326
MouseClick, left,  523,  312
MouseClick, left,  551,  301
MouseClick, left,  573,  289
MouseClick, left,  602,  276
MouseClick, left,  626,  265
MouseClick, left,  652,  254
MouseClick, left,  681,  265
MouseClick, left,  649,  277
MouseClick, left,  623,  291
MouseClick, left,  600,  302
MouseClick, left,  572,  313
MouseClick, left,  549,  327
MouseClick, left,  524,  337
MouseClick, left,  505,  349
MouseClick, left,  473,  361
MouseClick, left,  451,  373
MouseClick, left,  421,  385
MouseClick, left,  396,  397
MouseClick, left,  374,  408
MouseClick, left,  348,  422
MouseClick, left,  329,  432
MouseClick, left,  307,  444
MouseClick, left,  280,  455
MouseClick, left,  249,  469
MouseClick, left,  224,  481
MouseClick, left,  199,  492
MouseClick, left,  227,  504
MouseClick, left,  249,  492
MouseClick, left,  280,  481
MouseClick, left,  304,  469
MouseClick, left,  325,  454
MouseClick, left,  349,  443
MouseClick, left,  376,  431
MouseClick, left,  399,  421
MouseClick, left,  426,  408
MouseClick, left,  450,  397
MouseClick, left,  481,  384
MouseClick, left,  506,  372
MouseClick, left,  523,  361
MouseClick, left,  550,  347
MouseClick, left,  573,  338
MouseClick, left,  601,  326
MouseClick, left,  626,  310
MouseClick, left,  650,  303
MouseClick, left,  675,  288
MouseClick, left,  700,  278
MouseClick, left,  726,  290
MouseClick, left,  699,  302
MouseClick, left,  672,  313
MouseClick, left,  650,  325
MouseClick, left,  624,  338
MouseClick, left,  600,  350
MouseClick, left,  573,  359
MouseClick, left,  548,  374
MouseClick, left,  526,  386
MouseClick, left,  497,  396
MouseClick, left,  471,  410
MouseClick, left,  448,  422
MouseClick, left,  423,  434
MouseClick, left,  399,  446
MouseClick, left,  374,  458
MouseClick, left,  350,  468
MouseClick, left,  322,  483
MouseClick, left,  301,  494
MouseClick, left,  273,  505
MouseClick, left,  249,  517
MouseClick, left,  275,  530
MouseClick, left,  302,  519
MouseClick, left,  323,  506
MouseClick, left,  350,  494
MouseClick, left,  373,  481
MouseClick, left,  399,  470
MouseClick, left,  426,  457
MouseClick, left,  449,  444
MouseClick, left,  474,  434
MouseClick, left,  502,  421
MouseClick, left,  525,  409
MouseClick, left,  548,  397
MouseClick, left,  574,  384
MouseClick, left,  602,  374
MouseClick, left,  626,  359
MouseClick, left,  652,  349
MouseClick, left,  676,  339
MouseClick, left,  700,  327
MouseClick, left,  727,  315
MouseClick, left,  749,  299

Sleep, 100

;Move window to view the second half of the field
MouseClickDrag, Left, 500, 500, 300, 400

Sleep, 100

MouseClick, left,  579,  209
MouseClick, left,  559,  223
MouseClick, left,  528,  238
MouseClick, left,  507,  245
MouseClick, left,  481,  262
MouseClick, left,  458,  274
MouseClick, left,  431,  283
MouseClick, left,  409,  295
MouseClick, left,  382,  307
MouseClick, left,  357,  321
MouseClick, left,  331,  332
MouseClick, left,  307,  345
MouseClick, left,  283,  355
MouseClick, left,  259,  369
MouseClick, left,  230,  381
MouseClick, left,  208,  393
MouseClick, left,  181,  403
MouseClick, left,  159,  417
MouseClick, left,  135,  428
MouseClick, left,  107,  442
MouseClick, left,  131,  453
MouseClick, left,  159,  439
MouseClick, left,  184,  428
MouseClick, left,  208,  417
MouseClick, left,  232,  405
MouseClick, left,  257,  393
MouseClick, left,  284,  382
MouseClick, left,  309,  369
MouseClick, left,  331,  356
MouseClick, left,  357,  345
MouseClick, left,  382,  331
MouseClick, left,  408,  320
MouseClick, left,  432,  308
MouseClick, left,  457,  296
MouseClick, left,  484,  284
MouseClick, left,  508,  275
MouseClick, left,  533,  261
MouseClick, left,  559,  249
MouseClick, left,  583,  237
MouseClick, left,  608,  224
MouseClick, left,  632,  237
MouseClick, left,  607,  249
MouseClick, left,  583,  260
MouseClick, left,  558,  271
MouseClick, left,  532,  285
MouseClick, left,  507,  296
MouseClick, left,  482,  308
MouseClick, left,  458,  319
MouseClick, left,  433,  333
MouseClick, left,  407,  344
MouseClick, left,  382,  355
MouseClick, left,  359,  368
MouseClick, left,  329,  381
MouseClick, left,  308,  393
MouseClick, left,  280,  403
MouseClick, left,  258,  417
MouseClick, left,  231,  429
MouseClick, left,  208,  440
MouseClick, left,  181,  453
MouseClick, left,  156,  465
MouseClick, left,  181,  477
MouseClick, left,  208,  466
MouseClick, left,  233,  452
MouseClick, left,  257,  441
MouseClick, left,  283,  429
MouseClick, left,  307,  417
MouseClick, left,  332,  406
MouseClick, left,  359,  392
MouseClick, left,  381,  381
MouseClick, left,  407,  368
MouseClick, left,  431,  358
MouseClick, left,  458,  346
MouseClick, left,  481,  334
MouseClick, left,  508,  320
MouseClick, left,  533,  309
MouseClick, left,  558,  296
;
MouseClick, left,  579,  291
MouseClick, left,  609,  279
MouseClick, left,  633,  268
MouseClick, left,  658,  255
;
MouseClick, left,  682,  266
MouseClick, left,  659,  278
MouseClick, left,  630,  291
MouseClick, left,  608,  302
MouseClick, left,  583,  314
MouseClick, left,  557,  327
MouseClick, left,  533,  337
MouseClick, left,  508,  350
MouseClick, left,  482,  361
MouseClick, left,  457,  373
MouseClick, left,  431,  387
MouseClick, left,  407,  397
MouseClick, left,  383,  410
MouseClick, left,  360,  422
MouseClick, left,  333,  435
MouseClick, left,  309,  447
MouseClick, left,  282,  459
MouseClick, left,  255,  471
MouseClick, left,  231,  483
MouseClick, left,  207,  495
MouseClick, left,  230,  506
MouseClick, left,  256,  495
MouseClick, left,  282,  483
MouseClick, left,  308,  472
MouseClick, left,  332,  458
MouseClick, left,  357,  446
MouseClick, left,  381,  435
MouseClick, left,  407,  424
MouseClick, left,  431,  411
MouseClick, left,  456,  398
MouseClick, left,  480,  387
MouseClick, left,  507,  376
MouseClick, left,  530,  362
MouseClick, left,  556,  351
MouseClick, left,  581,  339
MouseClick, left,  608,  327
MouseClick, left,  631,  314
MouseClick, left,  657,  303
MouseClick, left,  681,  290
MouseClick, left,  708,  278
MouseClick, left,  733,  290
MouseClick, left,  705,  303
MouseClick, left,  680,  315
MouseClick, left,  656,  327
MouseClick, left,  631,  339
MouseClick, left,  608,  349
MouseClick, left,  583,  362
MouseClick, left,  556,  375
MouseClick, left,  531,  386
MouseClick, left,  506,  399
MouseClick, left,  481,  409
MouseClick, left,  458,  424
MouseClick, left,  431,  434
MouseClick, left,  406,  447
MouseClick, left,  381,  456
MouseClick, left,  357,  471
MouseClick, left,  331,  483
MouseClick, left,  305,  495
MouseClick, left,  280,  507
MouseClick, left,  259,  518
MouseClick, left,  279,  532
MouseClick, left,  307,  519
MouseClick, left,  332,  506
MouseClick, left,  358,  496
MouseClick, left,  381,  482
MouseClick, left,  409,  472
MouseClick, left,  432,  460
MouseClick, left,  458,  447
MouseClick, left,  482,  435
MouseClick, left,  507,  423
MouseClick, left,  531,  411
MouseClick, left,  558,  399
MouseClick, left,  583,  386
MouseClick, left,  608,  376
MouseClick, left,  632,  362
MouseClick, left,  657,  352
MouseClick, left,  681,  339
MouseClick, left,  706,  327
MouseClick, left,  731,  314
MouseClick, left,  757,  303
MouseClick, left,  782,  316
MouseClick, left,  758,  327
MouseClick, left,  731,  338
MouseClick, left,  707,  350
MouseClick, left,  680,  363
MouseClick, left,  656,  375
MouseClick, left,  632,  386
MouseClick, left,  606,  399
MouseClick, left,  581,  409
MouseClick, left,  556,  422
MouseClick, left,  531,  436
MouseClick, left,  508,  447
MouseClick, left,  480,  458
MouseClick, left,  456,  471
MouseClick, left,  432,  482
MouseClick, left,  407,  493
MouseClick, left,  382,  506
MouseClick, left,  356,  520
MouseClick, left,  330,  531
MouseClick, left,  307,  542

Sleep, 100

;Return window to start position
MouseClickDrag, Left, 300, 400, 400, 500